package inputStreamReader;

import java.io.*;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        //字节流转换成字符流读取数据并打印
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("IODemo\\you.txt")));
        //读取数据
        String line;
        while((line = br.readLine()) != null){
            System.out.println(line);
        }
        //释放资源
        br.close();
    }
}
